#ifndef QS_MACB100_HAL_H
#define QS_MACB100_HAL_H

#define QS_USING_KEY
#define QS_SPEED_CTRL

#define QS_BEEP_CTRL_PORT        GPIOA
#define QS_BEEP_CTRL_PIN         LL_GPIO_PIN_1

#define QS_LED_PORT           GPIOA
#define QS_LED_PIN            LL_GPIO_PIN_15

#define M3_UP_PORT            GPIOA
#define M3_UP_PIN             LL_GPIO_PIN_12

#define M3_DOWN_PORT          GPIOA
#define M3_DOWN_PIN           LL_GPIO_PIN_8

#define M2_UP_PORT            GPIOB
#define M2_UP_PIN             LL_GPIO_PIN_2

#define M2_DOWN_PORT          GPIOA
#define M2_DOWN_PIN           LL_GPIO_PIN_6

#define M1_UP_PORT            GPIOA
#define M1_UP_PIN             LL_GPIO_PIN_5

#define M1_DOWN_PORT          GPIOA
#define M1_DOWN_PIN           LL_GPIO_PIN_4

#define QS_M3_SPPED_PORT         GPIOA 
#define QS_M3_SPPED_PIN          LL_GPIO_PIN_11

#define QS_M2_SPPED_PORT         GPIOA 
#define QS_M2_SPPED_PIN          LL_GPIO_PIN_10

#define QS_M1_SPPED_PORT         GPIOA 
#define QS_M1_SPPED_PIN          LL_GPIO_PIN_9
 
#define QS_M3_ANALOG_PORT        GPIOB
#define QS_M3_ANALOG_PIN         LL_GPIO_PIN_1

#define QS_M2_ANALOG_PORT        GPIOB
#define QS_M2_ANALOG_PIN         LL_GPIO_PIN_0

#define QS_M1_ANALOG_PORT        GPIOA
#define QS_M1_ANALOG_PIN         LL_GPIO_PIN_7

#define NUM_DRIVES   3

#define STOP_STATUS  0
#define UP_STATUS    1
#define DOWN_STATUS   2

#endif
